package com.imooc.router.gradle

import org.gradle.api.Plugin
import org.gradle.api.Project

class RouterPlugin  implements Plugin<Project>{
    void apply(Project project){
        println("i am RouterPlugin,apply method is be called ${project.name}")
        project.getExtensions().create("router",RouterExtension)
        project.afterEvaluate {
            RouterExtension extension=project["router"]
            println("user setting wikidir = ${extension.wikiDir}")
        }
    }
}